import helper from "./helper";
const productType = {
  get stock() {
    return {
      value: 1,
      text: "存货",
    };
  },
  get service() {
    return {
      value: 2,
      text: "服务",
    };
  },
  get asset() {
    return {
      value: 3,
      text: "资产",
    };
  },
  get array() {
    return helper.objectToArray(productType);
  },
  get(value) {
    return helper.getEnumItemByValue(productType, value);
  },
};
export default productType;
